package com.ruoyi.web.wx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.wx.mapper.DeliverySiteMapper;
import com.ruoyi.web.wx.entity.DeliverySite;
import com.ruoyi.web.wx.service.IDeliverySiteService;
import com.ruoyi.common.core.text.Convert;

/**
 * 投递地点 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-27
 */
@Service
public class DeliverySiteServiceImpl implements IDeliverySiteService 
{
	@Autowired
	private DeliverySiteMapper deliverySiteMapper;

	/**
     * 查询投递地点信息
     * 
     * @param id 投递地点ID
     * @return 投递地点信息
     */
    @Override
	public DeliverySite selectDeliverySiteById(String id)
	{
	    return deliverySiteMapper.selectDeliverySiteById(id);
	}
	
	/**
     * 查询投递地点列表
     * 
     * @param deliverySite 投递地点信息
     * @return 投递地点集合
     */
	@Override
	public List<DeliverySite> selectDeliverySiteList(DeliverySite deliverySite)
	{
	    return deliverySiteMapper.selectDeliverySiteList(deliverySite);
	}
	
    /**
     * 新增投递地点
     * 
     * @param deliverySite 投递地点信息
     * @return 结果
     */
	@Override
	public int insertDeliverySite(DeliverySite deliverySite)
	{
	    return deliverySiteMapper.insertDeliverySite(deliverySite);
	}
	
	/**
     * 修改投递地点
     * 
     * @param deliverySite 投递地点信息
     * @return 结果
     */
	@Override
	public int updateDeliverySite(DeliverySite deliverySite)
	{
	    return deliverySiteMapper.updateDeliverySite(deliverySite);
	}

	/**
     * 删除投递地点对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteDeliverySiteByIds(String ids)
	{
		return deliverySiteMapper.deleteDeliverySiteByIds(Convert.toStrArray(ids));
	}
	
}
